package timing.ukulele.flow.net;

import timing.ukulele.flow.vo.*;
import com.github.lianjiatech.retrofit.spring.boot.annotation.RetrofitClient;
import retrofit2.http.GET;
import retrofit2.http.Query;
import timing.ukulele.flow.vo.*;

import java.util.List;
@RetrofitClient(baseUrl = "${flow.userInfo.url}")
public interface FlowUserInfoApi {

    @GET("getareatree")
    Result<AreaVO> getAreaTree(@Query("parentcode") String parentcode);

    @GET("getdeptree")
    Result<DeptmentVO> getDepTree(@Query("parentcode") String parentcode);

    @GET("searchroles")
    Result<List<RoleVO>> getRoleList(@Query("name") String name);

    @GET("getflowrule")
    Result<List<RuleVO>> getFlowRuleList();

    @GET("searchusers")
    Result<List<UserVO>> getUserList(@Query("userpara") String userpara, @Query("uuid") String uuid,
                                     @Query("depcode") String depcode, @Query("areacode") String areacode,
                                     @Query("roles") String roles, @Query("isand") String isand,
                                     @Query("usertype") String usertype, @Query("startuser") String startuser,
                                     @Query("flowuser") String flowuser, @Query("rulecode") String rulecode);

}
